package com.shuyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuyu.domain.Message;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MessageMapper extends BaseMapper<Message> {
    @Select("select t1.*,t2.username from tbl_message t1 left join tbl_customer t2 on t1.customer_id = t2.id")
    List<Message> getList();

}
